package org.rsbot.util;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;

public class FrameUtil
{
  public static boolean setTheme(JFrame paramJFrame, String paramString)
  {
    try
    {
      JFrame.setDefaultLookAndFeelDecorated(true);
      UIManager.setLookAndFeel("org.pushingpixels.substance.api.skin." + paramString);
      SwingUtilities.updateComponentTreeUI(paramJFrame);
    } catch (Exception localException) {
      return false;
    }
    return true;
  }
}